class Test {
  constructor() {
    this.a = '大家好！你好'
  }
}

let test = new Test();
document.body.innerHTML = test.a;